import request from '@/utils/request'

export function oldFacilitiesAddList(data) { //表格查询
  return request({
    url: '/project-quality/api/standingBooOldFacilities/page',
    method: 'POST',
    data
  })
}
export function oldFacilitiesAddAdd(data) { //添加
  return request({
    url: '/project-quality/api/standingBooOldFacilities/add',
    method: 'POST',
    data
  })
}
export function oldFacilitiesAddEdit(data) { //编辑
  return request({
    url: '/project-quality/api/standingBooOldFacilities/edit',
    method: 'POST',
    data
  })
}
export function oldFacilitiesAddDetails(id) { //单条查询
  return request({
    url: '/project-quality/api/standingBooOldFacilities/'+id,
    method: 'get',
  })
}
export function oldFacilitiesAddDelete(id) { //删除
  return request({
    url: '/project-quality/api/standingBooOldFacilities/del/'+id,
    method: 'get',
  })
}
export function oldFacilitiesAddExport(data) { //导出
    return request({
        url: '/project-quality/api/standingBooOldFacilities/export',
        responseType: 'arraybuffer',
        method: 'POST',
        data,
    })
}
